package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by meizhonghao on 2018/05/07.
 */
@Component
//@ConfigurationProperties(prefix = "zengxintong")
//@PropertySource("classpath:properties/zengxintong.properties")
@DisconfFile(targetDirPath = "disconf", filename = "zengxintong.properties")
public class ZengxintongProperties {

    private String url;
    private String username;
    private String password;
    private String protocol_data_type_name;
    private String publicKey;

    @DisconfFileItem(name = "zengxintong.url", associateField = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @DisconfFileItem(name = "zengxintong.username", associateField = "username")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @DisconfFileItem(name = "zengxintong.password", associateField = "password")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @DisconfFileItem(name = "zengxintong.protocol_data_type_name", associateField = "protocol_data_type_name")
    public String getProtocol_data_type_name() {
        return protocol_data_type_name;
    }

    public void setProtocol_data_type_name(String protocol_data_type_name) {
        this.protocol_data_type_name = protocol_data_type_name;
    }
    @DisconfFileItem(name = "zengxintong.publicKey", associateField = "publicKey")
    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }
}
